﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BrowserGameFramework.Common
{
    public class Enums
    {
        /// <summary>
        /// The Tracelevels
        /// </summary>
        public enum TraceLevel
        {
            /// <summary>
            /// Defaultvalue for traces
            /// </summary>
            Undefined = 0,
            /// <summary>
            /// Errorstate for logging
            /// </summary>
            Error = 1,
            /// <summary>
            /// Warning
            /// </summary>
            Warning = 2,
            /// <summary>
            /// Information
            /// </summary>
            Information = 3,
            /// <summary>
            /// Logs everything, Don't use on production!
            /// </summary>
            Verbose = 4
        }

        /// <summary>
        /// Transactionstatus
        /// </summary>
        public enum Status
        {
            /// <summary>
            /// 
            /// </summary>
            Undefined = 0,
            /// <summary>
            /// 
            /// </summary>
            Success = 1,
            /// <summary>
            /// 
            /// </summary>
            Error = 2
        }

        /// <summary>
        /// Registration status for 'Account' projectfile
        /// </summary>
        public enum RegistrationStatus
        {
            /// <summary>
            /// Unknown state
            /// </summary>
            Undefined = 0,

            /// <summary>
            /// Success and the user is now able to login
            /// </summary>
            SuccessAndReady = 1,

            /// <summary>
            /// Success, but the user must be activated by an administrator
            /// </summary>
            SuccessButWaitingForUnlock = 2,

            /// <summary>
            /// Technical error
            /// </summary>
            Error = 3,

            /// <summary>
            /// Duplicate - this registration should be checked by an administrator
            /// </summary>
            Duplicate = 4,

            /// <summary>
            /// Account is locked - no login.
            /// </summary>
            AccountLocked = 5,
            
            /// <summary>
            /// The user has to choose another name.
            /// </summary>
            UserNameAllreadyExists = 6,

            /// <summary>
            /// The Registration function is disabled
            /// </summary>
            RegistrationIsDisabled = 7
             
        }
    }
}
